<?php
function queryuser($user) {
    include "db.php";

// 检查连接
    $sql = "select * from users where username = '$user'";
    $result = $conn->query($sql);
    if ($result->num_rows > 0) {
        return "yes";
    }
    return "no";
}
?>
